package org.jdemo.parser.htmlunit;

import com.gargoylesoftware.htmlunit.WebClient;
import com.gargoylesoftware.htmlunit.html.HtmlPage;

import java.io.IOException;

/**
 * Demo1
 *
 * @author longlin(longlin@cyou-inc.com)
 * @date 2014/8/11
 * @since V1.0
 */
public class Demo1 {
    public static void main(String[] args) throws IOException {
        WebClient client = new WebClient();
        HtmlPage page = client.getPage("http://www.51diaocha.com/w/1072753.htm");
        System.out.println(page.asXml());
    }
}
